import { EExceptionStatusCode, IException } from '@/types/common'

// 数据库 异常类
export default class DBServerError extends Error implements IException {
  // 状态码
  public statusCode: EExceptionStatusCode

  // 构造函数
  constructor(message: string = 'Database server error') {
    super(message)
    this.statusCode = EExceptionStatusCode.DB_ERROR
    this.name = 'DBServerError'
  }
}
